<!DOCTYPE html>
<html>
<head>
  <title>DVXT Library</title>
  <%= stylesheet_link_tag    "users" %>
  <%= stylesheet_link_tag    "metro" %>
  <%= javascript_include_tag "application" %>
  
  <%= csrf_meta_tags %>
  
  <meta charset="utf-8" />
  <meta name="description" content="" />
	<meta name="keywords" content="" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
	
	<!-- <link rel="stylesheet" type="text/css" media="all" href="/assets/stylesheets/metro.css" /> -->
	<script src="/assets/javascripts/jquery.min.js"></script>
	<script src="/assets/javascripts/jquery.plugins.min.js"></script>
	<script src="/assets/javascripts/metro.js"></script>
	<!--[if lt IE 9]>
		<script src="js/respond.min.js"></script>
	<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head> 
</head>
<body>
<!------------------------------------------------------------------------------------------>
<div class="header_form">
	
	<h1>Welcome Administrator : <%= User.find_by_id(session[:user_id]).full_name %></h1> 
	
</div>

<div class="logout_form">
	<%= button_to 'Logout', logout_path, method: :delete %>  <! button_to dung cu phap giong link_to ko the truyen tham so duoc>
</div>
<div class="new_form">
	<br>
	<%= link_to image_tag("add.png",:width => '50px',:height => '50px') , new_user_path %>
	
</div>


<!------------------------------------------------------------------------------------------>
<!-- <div class="body_form">


<h1>Listing users</h1>

<% if notice %>
<p id="notice"><%= notice %></p>
<% end %>

<table>
  <tr>
    <th>Username</th>
    <th>Full name</th>
    <th>Email</th>
    <th>Identify card</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @users.each do |user| %>
  <tr>
    <td><%= user.username %></td>
    <td><%= user.full_name %></td>
    <td><%= user.email %></td>
    <td><%= user.identify_card %></td>
    <td><%= link_to 'Show', user %></td>
    <td><%= link_to 'Edit', edit_user_path(user) %></td>
    <td><%= link_to 'Destroy', user, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New User', new_user_path %>
</div> -->
<!-- --------------------------------------------------------------- metro -->

	<div class="metro-layout horizontal">
		<!-- <div class="header">
			<h1>Metro Flexible Navigation</h1>
			<div class="controls">
				<span class="down" title="Scroll down"></span>
				<span class="up" title="Scroll up"></span>
				<span class="next" title="Scroll left"></span>
				<span class="prev" title="Scroll right"></span>
				<span class="toggle-view" title="Toggle layout"></span>
			</div>
		</div> -->
		<div class="content clearfix">
			<div class="items">
				
				
				<% @users.each do |user| %>
				
				<%= link_to image_tag(user.image_url,:width => '100px',:height => '120px',:class => 'icon') + user.full_name, user, :class => 'box width2 height2' %>
				<!-- <a class="box" href="<%= user %>" style="background: #151616;">
					<span><%= user.full_name %> </span>
					
					<!-- <%= link_to image_tag("settings.png"), user %> -->
					<!-- <%= image_tag("settings.png", :class => 'icon') %> -->  <!-- =<img src="/settings.png" alt="" /> -->
				<!-- </a> -->
				
				<% end %> 
			
		</div>
	</div>

</body>

